package com.zjw.designPattern.listener;

import lombok.Data;

/**
 * @description:
 * @author: zhangjiawei
 * @createTime:2022/3/9 15:52
 * @modified by:
 */
@Data
public class WashingHandsEvent extends Event{
    private String eventName;
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public WashingHandsEvent(Object source,String eventName) {
        super(source);
        this.eventName = eventName;
    }
}
